<%@page import="org.proddevplm.dao.data.designForX.DesignForX"%>
<%@page import="org.proddevplm.constants.ControllerConstants"%>
<%@page import="org.proddevplm.business.administration.constants.AdminConstants"%>

<script>

	$(function(){
		$("button").button();
	});
	
	function editDfXConcept(cont){
		document.getElementById('dfxId').value = cont;
		document.forms['editDFXForm'].submit();
	}
	
</script>

<%
	DesignForX selectedDfx = (DesignForX)session.getAttribute("selectedDfx");
%>

<div class="containerSmall" style="width:60%; margin-top:20px">
	<form name="editDFXForm" method="post" action="/proddev/controller" style="margin:0">
		<input type = "hidden" name = "<%=ControllerConstants.MANAGER_KEY%>" value = "<%=ControllerConstants.ADMIN_MANAGER%>"/>
		<input type = "hidden" name = "<%=ControllerConstants.METHOD_KEY%>" value = "<%=AdminConstants.EDIT_DFX%>"/>
		<input type = "hidden" name = "dfxId" id= "dfxId" />

		<div class="pageTitle" style="font-weight:bold">
			Edit Design for X concept
		</div>
				
		<div style="margin-top:10px; font-weight:bold">
			Design for X
		</div>
		<input class="regInput" id="editDfXName" name="editDfXName" value="<%=selectedDfx.getDfxName() %>" style=" width:100%; margin-top:5px;"/>
		
		<div style="margin-top:10px; font-weight:bold">
			Please add detailed information about the concept
		</div>
		<textarea class="regInput" id="editDfXDetailedInfo" name="editDfXDetailedInfo" rows="4" style=" width:100%; margin-top:5px;"><%=selectedDfx.getInfo() %></textarea>
	
	</form>
		
		<button id="editDfXConcept" name="editDfXConcept" onclick="editDfXConcept('<%=selectedDfx.getId()%>')" style="width:40%; margin-top:10px; font-weight:bold">Edit DfX Concept</button>
	
</div>